package com.zy.dp.composite.example6;

public class Client
{
	public static void main(String[] args)
	{
		Component root = new Composite("服装");

		Component c1 = new Composite("男装");

		Component c2 = new Composite("女装");

		Component c3 = new Composite("男装");

		root.addChild(c1);
		c1.addChild(c2);
		c2.addChild(c3);

		root.printStruct("");

	}
}
